<!DOCTYPE html>
<html class="x-admin-sm">
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <title>掌店</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
    <link rel="stylesheet" href="../css/font.css">
    <link rel="stylesheet" href="../css/xadmin.css">
    <script src="../lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="../js/xadmin.js"></script>
</head>


<body>
<div class="x-nav">
            <span class="layui-breadcrumb">
                <a href="">会员管理</a>
                <a><cite>会员信息管理</cite></a>
            </span>

</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div align="left" class="layui-card-body ">
                    <form class="layui-form layui-col-space5">
                        <div class="layui-input-inline layui-show-xs-block">
                            <input class="layui-input" placeholder=""></div>
                        <div class="layui-input-inline layui-show-xs-block">
                            <button class="layui-btn layui-btn-danger" lay-submit="" lay-filter="sreach">
                                <i class="layui-icon">&#xe615;</i></button>
                            <button class="layui-btn layui-btn-danger" onclick="xadmin.open('添加新品','addStock.html')">
                                <i class="layui-icon"></i>添加会员
                            </button>
                            <button class="layui-btn layui-btn-warm" onclick="delAll()">
                                <i class="layui-icon"></i>删除会员
                            </button>
                        </div>
                    </form>
                </div>

                <div class="layui-card-body ">
                    <table class="layui-table layui-form">
                        <thead>
                        <tr>
                            <th>ID</th>
                            <th>姓名</th>
                            <th>性别</th>
                            <th>电话号码</th>
                            <th>会员等级</th>
                            <th>会员积分</th>
                            <th>所属门店</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr th:each="info:${infoList}">
                            <td th:text="${info.ID}">100100001</td>
                            <td th:text="${info.name}">Tom</td>
                            <td th:text="${info.sex}">man</td>
                            <td th:text="${info.telephone}">13869988961</td>
                            <td th:text="${info.level}">0</td>
                            <td th:text="${info.point}">1</td>
                            <td th:text="${info.branch_no}">1</td>
                        </tr>
                        </tbody>
                    </table>
                </div>

                <div class="layui-container">


                            <div align="center" id="test1"></div>

                            <script src="/static/build/layui.js"></script>
                            <script>
                                layui.use('laypage', function(){
                                    var laypage = layui.laypage;

                                    //执行一个laypage实例
                                    laypage.render({
                                        elem: 'test1' //注意，这里的 test1 是 ID，不用加 # 号
                                        ,count: 50 //数据总数，从服务端得到
                                    });
                                });
                            </script>
                        <br>
                </div>







<!--                    -->
<!--                        <div>-->
<!--                            <a th:unless="${pages.isFirstPage}" class="prev"-->
<!--                               th:href="@{/M_stock/stocks(start=${pages.hasPreviousPage}?${pages.prePage}:1)}">&lt;&lt;</a>-->
<!--                            <span class="current" th:text="${pages.PageNum}">1</span>-->
<!--                            &lt;!&ndash;                                    <a class="num" href="">2</a>&ndash;&gt;-->
<!--                            <a th:unless="${pages.isLastPage}" class="next"-->
<!--                               th:href="@{/M_stock/stocks(start=${pages.hasNextPage}?${pages.nextPage}:${pages.pages})}">&gt;&gt;</a>-->
<!--                        </div>-->
                    </div>
                </div>
            </div>
        </div>

</body>

</html>